package com.gzsxy.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiaolong
 * @version 1.0
 * @description: TODO
 * @date 2021/11/4 20:04
 */
@RestController
public class MemberServiceController {

    @GetMapping("/getMember/test")
    @PreAuthorize("hasAuthority('orderManager')")
    public String getMember() {
        return "我是会员服务接口";
    }



    @GetMapping("/test")
    public String getTest(){
        return "测试测试";
    }
}
